/*
*************************************
* PocketGTT
*************************************
This file is part of PocketGTT.

PocketGTT is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

PocketGTT is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with PocketGTT.  If not, see <http://www.gnu.org/licenses/>.
*/

import QtQuick 1.0


Item {
    //    id: infopanel
    //    anchors.top: info_title.bottom
    //    anchors.bottom: parent.bottom
    //    anchors.left: parent.left
    //    anchors.right: parent.right
    //    anchors.topMargin: 8

    id: psgView

//    property real changetime: 200
    property int localStatus: myWin.statesMan.pageViewStatus

    opacity: 0

    PassaggiViewHeader {
        id: pvh
        anchors.top: parent.top

        anchors.left: parent.left
        anchors.right: parent.right
    }

    PassaggiViewContent {
        anchors.top: pvh.bottom
        anchors.bottom: parent.bottom
        width: parent.width
    }



    states: [
        State {
            name: "visible"
            when: localStatus == 1 //GTTStopInfo.resultsPage
            PropertyChanges { target: psgView; opacity: 1}
            //            PropertyChanges { target: msgBanner; color: "white"}
            //            PropertyChanges { target: msgText; text: qsTr("")}
        }
    ]
    transitions: [
        Transition {
            NumberAnimation { properties: "opacity"; duration:myWin.theme.changetimeM}
            //            ColorAnimation { duration: changetime }
            //            PropertyAnimation { properties: "text"; duration: 400}
        }
    ]

}
